<!DOCTYPE html>
<html lang="en">
	<head>
    	<meta name="layout" content="main_pc">
        <title>火堆工作台</title>       
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'user.center.css')}" type="text/css">
        <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    </head>
<body>

	<div class="container-fluid">

		<section class="quick-navi mb20">
			<div class="container">
				<a href="#" class="quick-link"><span>火堆工作台</span><span
					class="caret"></span></a>
				<!--a href="#" class="quick-link">联系我们</a-->
			</div>
		</section>

		
		<section>
			<div class="container mb50">
				
				<g:render template="navigate"   model="[status: status]"/>
							

				<div class="right-content" id="rightconsole">

					<h2>创业日志管理</h2>
					<div style="line-height: 25px; padding: 10px 0px 10px 0px"><button onclick="window.location.href='/scfire/manage/addDiary'">发布文章</button> </div>
					<table class="table table-bordered">
						<tr>
							<td>ID</td>
							<td>标题</td>
							<td>创建时间</td>
							<td>操作</td>
						<tr>
						<g:if test="${articles != null}">
						<g:each in="${articles}" var="article">
						<tr>
							<td>${article.id}</td>
							<td>${article.title}</td>
							<td><g:formatDate format="yyyy-MM-dd HH:mm" date="${article.date}"/></td>
							<td><a href="/scfire/manage/editDiary?articleid=${article.id}">编辑</a> |  <a href="/scfire/manage/deleteDiary?articleid=${article.id}">删除</a></td>
						<tr>
						</g:each>
						</g:if>
					</table>
						

					<div class="pagea">
		               <span>共${totalCount ?: 0}条记录</span>
		               <div class="page float_r" style="margin: 10px;padding: 10px;border:5px;"><%--
					   <g:paginate controller="manage" action="projectApproveStatus" params='[status:"${status}"]' total="${totalCount ?: 0}"/>
					   --%></div>
		          	</div>                            
            	</div>
                	
                	
			</div>
			<div class="clearboth"></div>
		</section>


	</div>

	<script type="text/javascript">

		$(function() {
			$('ul.nav.navbar-nav li').hover(
					function() {
						console.log($(this).index());
						$(this).siblings('.top-active').addClass(
								'position-' + $(this).index());
					},
					function() {
						$(this).siblings('.top-active').removeClass(
								'position-' + $(this).index());
			});

		});

	</script>

</body>
</html>